﻿<?xml version="1.0" encoding="utf-8" ?>

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
 targetNamespace="PinCity.Localization"
 xmlns="PinCity.Localization"
 elementFormDefault="qualified">

	<xs:element name="localization">
		<xs:complexType>
			<xs:sequence minOccurs="1" maxOccurs="unbounded">
				<xs:element name="localizedString">
					<xs:complexType>
						<xs:simpleContent>
							<xs:extension base="xs:string">
								<xs:attribute name="key" type="camelCaseWord"/>
							</xs:extension>
						</xs:simpleContent>						
					</xs:complexType>
				</xs:element>
			</xs:sequence>
		</xs:complexType>
	</xs:element>

	<xs:simpleType name="camelCaseWord">
		<xs:restriction base="xs:string">
			<xs:pattern value="[a-z]([a-zA-Z])*"/>
		</xs:restriction>
	</xs:simpleType>
	
</xs:schema>